/**
 * Created by Administrator on 2015/6/4.
 */


var CategoryModel = require('../models/Category');

exports.list = function (type, callback) {

    CategoryModel.list(type, function (err, list) {

        if (err) {
            return callback(null);
        }
        callback(list);
    });
}
